package com.an.java.javaall.java8;

import java.util.ArrayList;
import java.util.List;

public class StreamTest {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("123");
        list.add("1233");
        System.out.println(list.stream().map(it -> it.length()).reduce((it, it2) -> {
            System.out.println("it:" + it + ",it2:" + it2);
            return it + it2;
        }).get());

    }
}
